<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>运营平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/common.css?v=20170207" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/table.css?v=20170117" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/jquery-ui.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-1.11.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ui.min.js" type="text/javascript"></script>
 <script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/yunIndex.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ym-datePlugin-0.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/global.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/cheshan/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery.placeholder.min.js"></script>
<script type="text/javascript">
 $(function(){
     $("input").placeholder();
     if (navigator.userAgent.indexOf("Safari") > -1) {
       $("input").css("lineHeight","normal !important");
     };
});
</script>

<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/cashier.css" />
<body>
<div class="header">
<div class="headerCo">
<span>你好,<?php echo ($user_info["real_name"]); ?><a href="<?php echo (WEB_URL); ?>Emp/logout">退出</a></span>
<h1><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_logo.jpg"></h1>
</div>
</div>
<div class="mian">
    <div class="mianL">
        <div class="mianL">
    <dl>
        <dd>
            <a id="menu_sy" href="/Index/index" class="shouye">首页</a>
        </dd>
        <?php foreach ($tree_menu as $key => $value): ?>
          <dd>
            <span id="menu_<?php echo ($value['first_char']); ?>" ><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_jia.jpg"><?php echo ($value['name']); ?></span>
            <ul style="display: none;">
                <?php if (!empty($value['children'])): ?>
                    <?php foreach ($value['children'] as $k => $v): ?>
                        <li><a id='menu_<?php echo ($v["first_char"]); ?>' href="<?php echo ($v['url']); ?>"><?php echo ($v['name']); ?></a></li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        <?php endforeach ?>
    </dl>
</div>

<?php $menu = 'jybggl.zysh'; ?>
<?php $menu=json_encode(explode('.', $menu)); ?>
<script>
    $(function () {
        var cur_menu = '<?php echo ($menu); ?>', cur_menu = eval('[' + cur_menu + ']'), cur_menu = cur_menu[0];
        if (cur_menu == "sy") {
            $("#menu_sy").removeClass('shouye').addClass('current');
        }
        $('#menu_' + cur_menu[0]).click();
        $('#menu_' + cur_menu[0]).find("img").attr("src", "http://img1.isou365.cn/paimai/yunying/images/yun_jie.jpg");
        $(".mianL").css("height", $(document).height() - 95);
        $('#menu_' + cur_menu[1]).addClass('current');
    });
</script>
    </div>
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li class="yuCurrent" onclick="get_list(1);">待确认</li>
                <li onclick="get_list(2);">通过</li>
                <li onclick="get_list(3);">驳回</li>
                <li onclick="get_list(4);">作废</li>
            </ul>
            <input type="hidden" name="status" value="1" />
        </div>
        <div class="live-seach">
            <form id="searchFrom">
                <ul class="clearfix order-seach">
                    <li>
                        <select name="location_area" id="location_area" class="select_model">
                            <?php if(count($bc_city) > 1): ?><option value="">请选择所在地</option><?php endif; ?>
                            <?php if(is_array($bc_city)): $i = 0; $__LIST__ = $bc_city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"><?php echo ($city); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                    </li>
                    <li style="margin-right:10px;"><input type="text" name="search_key" value="" placeholder="拍单号/车辆编号" class="car-number1" /></li>
                    <li><input type="text" name="car_plate_number" value="" placeholder="车牌号" /></li>
                    <li><input type="button" value="搜索"  onclick="search();" /></li>
                </ul>
            </form>
        </div>
        <div class="seller-buyer">
            <ul class="clearfix">
                <li class="buyerCurr" onclick="get_sell_buy(1,this)" >买方</li>
                <li onclick="get_sell_buy(2,this)">卖方</li>
            </ul>
            <input type="hidden" name="sell_buy" value="1" />
        </div>
        <div class="listBox">
            
        </div>
        <div class="clear"></div>
        <script>
            get_list(1);
            function get_list(status){
                $('input[name=status]').val(status);
                var sell_buy = $('input[name=sell_buy]').val();
               $.get("/Dispute/getList/seller_buyer/"+sell_buy,{"status":status},function(data){
                   $(".listBox").html(data);
                   $("input").placeholder();
               },"html");
            }
            function get_page(p){
                var sell_buy = $('input[name=sell_buy]').val();
                var status = $('input[name=status]').val();
                var data = $("#searchFrom").serialize() + "&" +encodeURI("p="+p);
                $.get("/Dispute/getList/status/"+status+"/seller_buyer/"+sell_buy,data, function(data){
                    $(".listBox").html(data);
                    $("input").placeholder();
                },"html");
            }
            
            function search(){
                var sell_buy = $('input[name=sell_buy]').val();
                var status = $('input[name=status]').val();
                $.get("/Dispute/getList/status/"+status+"/seller_buyer/"+sell_buy,$("#searchFrom").serialize(),function(data){
                    $(".listBox").html(data);
                    $("input").placeholder();
                },"html");
            }

            function get_sell_buy(st,t){
                $(".seller-buyer ul li").removeClass("buyerCurr");
                $(t).addClass("buyerCurr");
                $('input[name=sell_buy]').val(st);
                var status = $('input[name=status]').val();
                var data = $("#searchFrom").serialize();
                $.get("/Dispute/getList/status/"+status+"/seller_buyer/"+st,data,function(data){
                   $(".listBox").html(data);
                   $("input").placeholder();
                },"html");
            }
        </script>
</body>

</html>